package com.kingyun.gpsinspection.purificationservice.dao.mapper.tdm;

import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.WorkOrderApply;

import java.util.List;

/**
 * 工单关闭或者调整申请表
 * Created by jiangjx on 2017/02/23.
 */
public interface WorkOrderApplyMapper {
    /**
     * 插入数据（全条件）
     *
     * @param record pojo类
     * @return
     */
    int insert(WorkOrderApply record);

    /**
     * 插入数据(条件可选)
     *
     * @param record pojo类
     * @return
     */
    int insertSelective(WorkOrderApply record);

    /**
     * 根据工单修改审批信息
     *
     * @param record pojo类
     * @return
     */
    int updateByWorkOrderIdSelective(WorkOrderApply record);

    /**
     * 查询总记录条数
     *
     * @param workOrderApply 条件封装类
     * @return
     */
    Integer queryCount(WorkOrderApply workOrderApply);

    /**
     * 查询分页数据
     *
     * @param workOrderApply 条件封装类
     * @return
     */
    List<WorkOrderApply> queryTableList(WorkOrderApply workOrderApply);
}